import request from '@/utils/request'

// 查询全部服务列表
export function listAll(query) {
  return request({
    url: '/servicemanage/all/list',
    method: 'get',
    params: query
  })
}

// 查询全部服务详细
export function getAll(id) {
  return request({
    url: '/servicemanage/all/' + id,
    method: 'get'
  })
}

// 新增全部服务
export function addAll(data) {
  return request({
    url: '/servicemanage/all',
    method: 'post',
    data: data
  })
}

// 修改全部服务
export function updateAll(data) {
  return request({
    url: '/servicemanage/all',
    method: 'put',
    data: data
  })
}

// 删除全部服务
export function delAll(id) {
  return request({
    url: '/servicemanage/all/' + id,
    method: 'delete'
  })
}

